package com.ruoyi.experiment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.experiment.mapper.FirewallMapper;
import com.ruoyi.experiment.domain.Firewall;
import com.ruoyi.experiment.service.IFirewallService;

/**
 * 防火墙Service业务层处理
 * 
 * @author 邓鑫
 * @date 2023-07-28
 */
@Service
public class FirewallServiceImpl implements IFirewallService 
{
    @Autowired
    private FirewallMapper firewallMapper;

    /**
     * 查询防火墙
     * 
     * @param firewallId 防火墙主键
     * @return 防火墙
     */
    @Override
    public Firewall selectFirewallByFirewallId(Long firewallId)
    {
        return firewallMapper.selectFirewallByFirewallId(firewallId);
    }

    /**
     * 查询防火墙列表
     * 
     * @param firewall 防火墙
     * @return 防火墙
     */
    @Override
    public List<Firewall> selectFirewallList(Firewall firewall)
    {
        return firewallMapper.selectFirewallList(firewall);
    }

    /**
     * 新增防火墙
     * 
     * @param firewall 防火墙
     * @return 结果
     */
    @Override
    public int insertFirewall(Firewall firewall)
    {
        return firewallMapper.insertFirewall(firewall);
    }

    /**
     * 修改防火墙
     * 
     * @param firewall 防火墙
     * @return 结果
     */
    @Override
    public int updateFirewall(Firewall firewall)
    {
        return firewallMapper.updateFirewall(firewall);
    }

    /**
     * 批量删除防火墙
     * 
     * @param firewallIds 需要删除的防火墙主键
     * @return 结果
     */
    @Override
    public int deleteFirewallByFirewallIds(Long[] firewallIds)
    {
        return firewallMapper.deleteFirewallByFirewallIds(firewallIds);
    }

    /**
     * 删除防火墙信息
     * 
     * @param firewallId 防火墙主键
     * @return 结果
     */
    @Override
    public int deleteFirewallByFirewallId(Long firewallId)
    {
        return firewallMapper.deleteFirewallByFirewallId(firewallId);
    }
}
